home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume6 / xbv / patch1 < prev    next >
Encoding:
Internet Message Format  |  1990-03-21  |  2.0 KB

  1. Path: uunet!cs.utexas.edu!sun-barr!newstop!sun!number6.Solbourne.COM
  2. From: kucharsk@number6.Solbourne.COM (Bill Kucharski)
  3. Newsgroups: comp.sources.x
  4. Subject: v06i040: xbv, Patch1
  5. Message-ID: <133308@sun.Eng.Sun.COM>
  6. Date: 22 Mar 90 07:32:39 GMT
  7. Sender: news@sun.Eng.Sun.COM
  8. Lines: 56
  9. Approved: argv@sun.com
  10.  
  11. Submitted-by: kucharsk@number6.Solbourne.COM (Bill Kucharski)
  12. Posting-number: Volume 6, Issue 40
  13. Archive-name: xbv/patch1
  14.  
  15.  
  16.  
  17. The version of xbv which was posted to comp.sources.x was an older one which
  18. had a bug in which unmaskable events (MappingNotify, for one) would cause
  19. the bitmap window to disappear.  The patch enclosed fixes this problem.
  20.  
  21. *** patchlevel.h.orig    Wed Mar 21 10:32:06 1990
  22. --- patchlevel.h    Wed Mar 21 10:32:12 1990
  23. Prereq: 1
  24. ***************
  25. *** 1 ****
  26. ! #define PATCHLEVEL    1
  27. --- 1 ----
  28. ! #define PATCHLEVEL    2
  29. *** xbv.c.orig    Wed Mar 21 10:31:41 1990
  30. --- xbv.c    Wed Mar 21 10:31:27 1990
  31. ***************
  32. *** 315,321 ****
  33.   
  34.       XSelectInput(dpy, wind, ButtonPressMask);
  35.       XMapRaised(dpy, wind);        /* map window */
  36. !     XNextEvent(dpy, &event);    /* wait for ButtonPress event */
  37.   
  38.       /* button click - exit program */
  39.   
  40. --- 315,327 ----
  41.   
  42.       XSelectInput(dpy, wind, ButtonPressMask);
  43.       XMapRaised(dpy, wind);        /* map window */
  44. !     while (1) {
  45. !         XNextEvent(dpy, &event);    /* wait for ButtonPress event */
  46. !         if (event.type == ButtonPress)
  47. !             break;
  48. !     }
  49.   
  50.       /* button click - exit program */
  51.   
  52. --
  53. ===============================================================================
  54. | ARPA:    kucharsk@Solbourne.COM                  |    William Kucharski             |
  55. | uucp:    ...!{boulder,sun,uunet}!stan!kucharsk |    Solbourne Computer, Inc.      |
  56. = The opinions above are mine alone and NOT those of Solbourne Computer, Inc. =
  57.  
  58. dan
  59. -----------------------------------------------------------
  60.             O'Reilly && Associates
  61.         argv@sun.com / argv@ora.com
  62.        632 Petaluma Ave, Sebastopol, CA 95472 
  63.      800-338-NUTS, in CA: 800-533-NUTS, FAX 707-829-0104
  64.     Opinions expressed reflect those of the author only.
  65.